/* ====================================
   PARAMS PAGE STYLES
   ==================================== */

:root {
    --color-primary: #005068;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    --color-light: #f8f9fa;
    --color-border: #e0e0e0;
}

.params-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0;
}

.params-page h2 {
    color: var(--color-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 600;
}

.params-page h2 i {
    color: var(--color-primary);
}

/* ====================================
   PARAMS SECTION
   ==================================== */

.params-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #003d5c 0%, #00546b 100%);
    padding: 20px 25px;
    color: white;
    border-bottom: 3px solid var(--color-primary);
}

.section-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.section-header h3 i {
    font-size: 1.2rem;
}

.section-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.section-body {
    padding: 25px;
}

/* ====================================
   PARAMS TABLE
   ==================================== */

.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.params-table thead {
    background-color: var(--color-light);
    border-bottom: 2px solid var(--color-border);
}

.params-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.params-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.params-table tbody tr:hover {
    background-color: rgba(0, 80, 104, 0.05);
}

.params-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.species-cell {
    font-weight: 500;
    color: var(--color-primary);
    width: 30%;
}

.array-cell {
    width: 50%;
    position: relative;
}

.array-cell .view-mode,
.array-cell .edit-mode {
    display: inline-block;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #333;
    background-color: #f5f5f5;
    padding: 6px 10px;
    border-radius: 4px;
    min-height: 20px;
    width: 100%;
    box-sizing: border-box;
}

.array-cell .edit-mode {
    border: 2px solid var(--color-primary);
    background-color: white;
    font-size: 0.9rem;
}

.array-cell .edit-mode:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 80, 104, 0.1);
}

.actions-cell {
    width: 20%;
    text-align: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.array-row button {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-edit {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-edit:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-save {
    color: var(--color-success);
    border-color: var(--color-success);
}

.btn-save:hover {
    background-color: var(--color-success);
    color: white;
}

.btn-cancel {
    color: var(--color-error);
    border-color: var(--color-error);
}

.btn-cancel:hover {
    background-color: var(--color-error);
    color: white;
}

.array-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spinner {
    color: var(--color-primary);
    font-size: 1rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================
   EMPTY STATE
   ==================================== */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* ====================================
   TOAST NOTIFICATION
   ==================================== */

.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    text-align: center;
    transition: bottom 0.3s ease;
    font-weight: 500;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-success {
    background-color: var(--color-success);
}

.toast-error {
    background-color: var(--color-error);
}

.toast-warning {
    background-color: var(--color-warning);
    color: #333;
}

.toast-info {
    background-color: var(--color-info);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .params-table th,
    .params-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .species-cell {
        width: 35%;
    }

    .array-cell {
        width: 40%;
    }

    .actions-cell {
        width: 25%;
    }

    .array-row button {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 4px 6px;
    }

    .section-header {
        padding: 15px 20px;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .section-body {
        padding: 15px;
    }

    .params-page h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .params-table {
        font-size: 0.8rem;
    }

    .species-cell {
        width: 40%;
    }

    .array-cell {
        width: 35%;
    }

    .actions-cell {
        width: 25%;
    }

    .params-table th,
    .params-table td {
        padding: 8px 6px;
    }
}
