/* Custom styles for EA7SPAIN.COM eQSL System */

/* Dark mode theme */
.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

.card-header {
    border-bottom: 1px solid #333;
}

.card.bg-dark {
    background-color: #252525 !important;
}

.table-dark {
    background-color: #252525;
}

.table-dark tbody tr:hover {
    background-color: #2f2f2f;
}

/* Orange buttons (primary action) */
.btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.btn-orange:hover {
    background-color: #e26b0c;
    border-color: #e26b0c;
    color: white;
}

.btn-orange:focus {
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.5);
    color: white;
}

/* Custom styles for the iframe container */
.iframe-container {
    width: 100%;
    margin-top: 20px;
}

.iframe-container iframe {
    width: 100%;
    border: none;
    min-height: 600px;
}

/* Editor specific styles */
#editor-container {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.draggable-field {
    cursor: move;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px dashed #fd7e14;
    padding: 5px;
    color: white;
    z-index: 100;
    font-family: Arial, sans-serif;
}

/* Make form controls darker in dark mode */
.form-control, .form-select {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #3a3a3a;
    border-color: #fd7e14;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25);
}

/* Fix for Bootstrap close button in dark mode */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Fix for input placeholders */
.form-control::placeholder {
    color: #888;
}

/* Badge styling */
.badge {
    font-weight: normal;
    padding: 0.5em 0.8em;
}

/* List group styling for dark mode */
.list-group-item {
    background-color: #252525;
    border-color: #333;
}

.list-group-item-action:hover {
    background-color: #303030;
}

/* Make alerts stand out in dark mode */
.alert {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

/* Fix modal content in dark mode */
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Additional spacing */
body {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-top: 70px !important;
    }
}
