.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Sites Dashboard Section - Copied from home.css */
.sites-dashboard {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Settings Panel */
.settings-panel {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Import section-header styling from home.css */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--text-color) 0%, #9bc8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

/* Settings Grid Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Settings Cards */
.settings-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings-card-header {
    background: linear-gradient(135deg, #1a4387 0%, #2563eb 50%, #1e429f 100%);
    color: white;
    padding: 15px 20px;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.settings-card-content {
    padding: 20px;
    background-color: var(--dark-bg);
}

/* Webhook Form Layout */
.webhook-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.webhook-url {
    width: 100%;
}

.webhook-url input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.webhook-toggle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.webhook-toggle {
    width: auto;
    min-width: 180px;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webhook-toggle.enabled {
    background: linear-gradient(135deg, #2c9e3f 0%, #4CAF50 50%, #2c9e3f 100%);
    color: white;
}

.webhook-toggle.disabled {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 50%, #d32f2f 100%);
    color: white;
}

.webhook-test {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    transition: background-color 0.3s, transform 0.1s, opacity 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.webhook-test:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

.webhook-test:active {
    transform: scale(0.95);
}

.webhook-test.disabled {
    background-color: #9a9a9a;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.webhook-test.disabled:hover {
    transform: none;
    background-color: #9a9a9a;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
}

.form-group label, .webhook-url label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, .webhook-url input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: opacity 0.3s, background-color 0.3s, border-color 0.3s;
}

.form-group input:focus, .webhook-url input:focus {
    outline: none;
    border-color: #4b6cb7;
}

.form-group input.error, .webhook-url input.error {
    border-color: #f44336;
}

.webhook-url input:disabled {
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.1);
    border-color: #666;
    cursor: not-allowed;
}

/* Message Alerts */
.message-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.message-alert.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.message-alert.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.message-alert.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1400px) {
    .settings-subcards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    .settings-subcards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .settings-subcards {
        grid-template-columns: 1fr;
    }
    
    .webhook-url-card, .webhook-controls-card, .webhook-details-card {
        grid-column: span 1;
    }
    
    .webhook-toggle-container {
        width: 100%;
        margin-top: 10px;
    }
}

/* Custom Number Input */
.number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-top: auto;
    margin-bottom: 5px;
}

.number-input-container input[type="number"] {
    width: 80px;
    height: 36px;
    text-align: center;
    margin: 0 8px;
    -moz-appearance: textfield;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.number-input-container input[type="number"]::-webkit-inner-spin-button,
.number-input-container input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-decrement, .number-increment {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4b6cb7;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    font-weight: bold;
}

.number-decrement:hover, .number-increment:hover {
    background-color: #3b5a9d;
    transform: scale(1.05);
}

.number-decrement:active, .number-increment:active {
    transform: scale(0.95);
}

.unit-label {
    color: #9a9a9a;
    font-size: 0.85rem;
    text-align: center;
    display: block;
    margin-top: 5px;
}

/* Error message styling */
.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Settings Subcards */
.settings-subcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: start;
}

.settings-subcard {
    background-color: rgba(40, 44, 52, 0.7);
    border: 1px solid rgba(100, 100, 100, 0.4);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 230px;
}

.settings-subcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.settings-subcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4b6cb7 0%, #3b5a9d 100%);
}

.settings-subcard .form-group {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-subcard label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 5px;
    text-transform: uppercase;
    display: block;
}

.setting-description {
    font-size: 0.85rem;
    color: #9a9a9a;
    margin-bottom: 10px;
    font-weight: normal;
    line-height: 1.4;
}

/* Actions Container */
.actions-container {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

/* Debug Toggle Button and Container */
.debug-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.debug-toggle {
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.debug-toggle.enabled {
    background: linear-gradient(135deg, #2c9e3f 0%, #4CAF50 50%, #2c9e3f 100%);
    color: white;
}

.debug-toggle.disabled {
    background: linear-gradient(135deg, #4a3b92 0%, #4a42b8 50%, #3c3b92 100%);
    color: white;
}

.section-header .btn-success {
    background: linear-gradient(135deg, #2d8757 0%, #38a169 50%, #2a7d50 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.section-header .btn-success img {
    width: 20px;
    height: 20px;
}

.section-header .btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #3db476 50%, #38a169 100%);
    transform: translateY(-2px);
}

.webhook-subcard {
    grid-column: 1 / -1;
    width: 100%;
}

.webhook-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.webhook-url-card {
    /* Take up two columns in the grid */
    grid-column: span 2;
}

.webhook-controls-card, .webhook-details-card {
    /* Each takes one column */
    grid-column: span 1;
    max-width: 300px;
}

.webhook-url {
    flex: 1;
}

.webhook-url input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.webhook-test {
    width: 40px;
    height: 40px;
}

@media (max-width: 1200px) {
    .webhook-url-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .webhook-url-card, .webhook-controls-card, .webhook-details-card {
        grid-column: span 1;
    }
    
    .webhook-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .webhook-toggle-container {
        width: 100%;
    }
    
    .webhook-toggle {
        width: 100%;
    }
}

/* Specific webhook section formatting */
.settings-card:has(.webhook-controls-card) .settings-subcards {
    display: grid;
    grid-template-columns: minmax(300px, 350px) minmax(300px, 350px) 1fr;
    gap: 20px;
    width: 100%;
}

.webhook-controls-card {
    grid-column: 1;
    width: 100%;
    min-width: 300px;
}

.webhook-details-card {
    grid-column: 2;
    width: 100%;
    min-width: 300px;
}

.webhook-url-card {
    grid-column: 3;
    width: 100%;
}

/* Responsive adjustments for webhook cards */
@media (max-width: 1100px) {
    .settings-card:has(.webhook-controls-card) .settings-subcards {
        grid-template-columns: 1fr 1fr;
    }
    
    .webhook-controls-card {
        grid-column: 1;
    }
    
    .webhook-details-card {
        grid-column: 2;
    }
    
    .webhook-url-card {
        grid-column: 1 / span 2;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .settings-card:has(.webhook-controls-card) .settings-subcards {
        grid-template-columns: 1fr;
    }
    
    .webhook-controls-card,
    .webhook-details-card,
    .webhook-url-card {
        grid-column: 1;
        margin-top: 0;
    }
}

/* Fix for webhook section layout */
.settings-card:nth-child(2) .settings-subcards {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.webhook-controls-card {
    width: 25%;
    max-width: none;
    min-width: 220px;
}

.webhook-details-card {
    width: 25%;
    max-width: none;
    min-width: 220px;
}

.webhook-url-card {
    width: 50%;
    flex-grow: 1;
}

/* Responsive adjustments for the webhook cards */
@media (max-width: 1200px) {
    .settings-card:nth-child(2) .settings-subcards {
        flex-wrap: wrap;
    }
    
    .webhook-controls-card,
    .webhook-details-card,
    .webhook-url-card {
        width: 48%;
        min-width: 250px;
    }
    
    .webhook-url-card {
        width: 100%;
        flex-grow: 1;
    }
}

@media (max-width: 768px) {
    .webhook-controls-card,
    .webhook-details-card {
        width: 100%;
    }
}

/* Save button modified state */
.btn-success.modified {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #fff;
    border-color: #ff9800;
    animation: pulse-attention 2s infinite;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    transform: translateY(-1px);
}

.btn-success.modified:hover {
    background: linear-gradient(135deg, #ff8f00, #ffa726);
    box-shadow: 0 5px 12px rgba(255, 152, 0, 0.4);
}

@keyframes pulse-attention {
    0% {
        box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
    }
    100% {
        box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    }
} 