/* ====================================
 * 1. BASIC STYLES AND LAYOUT
 * ==================================== */
.f2f-my-aquarium {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.f2f-my-aquarium h2 {
    color: #f38221;
    font-size: 24px;
    margin-bottom: 20px;
}

.f2f-aquarium-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    flex: 1 1 300px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.f2f-aquarium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.f2f-test-results-loading,
.f2f-test-results-error,
.f2f-test-results-placeholder {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

.f2f-test-notes {
    margin-top: 15px;
    background-color: #eef;
    padding: 10px;
    border-radius: 6px;
}

/* ====================================
 * 2. TABLE STYLES
 * ==================================== */
.f2f-test-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.f2f-test-results-table th,
.f2f-test-results-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.f2f-test-results-table th {
    background-color: #f9f9f9;
    color: #181743;
}

.f2f-test-results-table td.out-of-range {
    color: #c62828;
    font-weight: bold;
}

/* ====================================
 * 3. BUTTON STYLES
 * ==================================== */
.f2f-delete-test-button {
    margin-top: 10px;
    background-color: #c00;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.f2f-delete-test-button:hover {
    background-color: #900;
}

.f2f-graph-button {
    background-color: #f38221;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.f2f-graph-button:hover {
    background-color: #e67012;
}

/* ====================================
 * 4. MODAL AND GRAPH STYLES
 * ==================================== */
.f2f-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.f2f-modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.f2f-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.f2f-modal-close:hover {
    color: #f38221;
}

.f2f-date-range {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.f2f-date-range label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 0.9rem;
}

.f2f-date-range input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.f2f-graph-block canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
}

canvas#f2f-parameter-graph {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
}

/* ====================================
 * 5. PARAMETER SELECTION STYLES
 * ==================================== */
.f2f-param-selector {
    margin-bottom: 1.5rem;
}

.f2f-param-selector label {
    background: #181743;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

#f2f-param-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

#f2f-param-list input[type="checkbox"] {
    display: none;
}

#f2f-param-list label {
    background: #e0e0e0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

#f2f-param-list input[type="checkbox"]:checked + label {
    background-color: #181743;
    color: #fff;
    border-color: #0c0c21;
}

.f2f-toggle-button-parameters {
    background-color: #f38221;
    color: #fff;
    border: 1px solid #f38221;
    font-weight: bold;
    padding: 8px 14px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.f2f-toggle-button-parameters:hover,
.f2f-toggle-button-parameters:focus {
    background-color: #f38221;
    color: #fff;
    border: 1px solid #f38221;
}

.f2f-toggle-button-parameters.expanded {
    background-color: #fff;
    color: #f38221;
    border: 1px solid #f38221;
}

.f2f-toggle-button-parameters .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.f2f-toggle-button-parameters.expanded .arrow {
    transform: rotate(180deg);
}

/* ====================================
 * 6. INSTRUCTION PANEL STYLES
 * ==================================== */
.f2f-instruction-panel {
    background-color: #f8f9fa;
    border-left: 4px solid #f38221;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.f2f-instruction-panel h4 {
    margin-top: 0;
    color: #181743;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.f2f-instruction-panel h4 i {
    color: #f38221;
    margin-right: 10px;
    font-size: 22px;
}

.f2f-instruction-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.f2f-instruction-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.f2f-instruction-list li:last-child {
    margin-bottom: 0;
}

.f2f-instruction-list li strong {
    color: #181743;
}

/* ====================================
 * 7. RESPONSIVE STYLES
 * ==================================== */
@media (max-width: 768px) {
    .f2f-date-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .f2f-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    #f2f-param-list {
        gap: 0.3rem;
    }
    
    #f2f-param-list label {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* ====================================
 * 8. MY AQUARIUM DASHBOARD SPECIFIC STYLES
 * ==================================== */
.f2f-st-tool-section {
    margin-bottom: 40px;
    padding: 0 0 20px 0;
}

.f2f-st-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3822133;
}

.f2f-st-section-icon {
    background-color: #f38221;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.f2f-st-section-title {
    color: #181743;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.f2f-st-section-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.f2f-st-feature-info {
    display: flex;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.f2f-st-feature-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.f2f-st-feature-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: #181743;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
}

.f2f-st-feature-content {
    flex: 1;
}

.f2f-st-feature-title {
    color: #181743;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
}

.f2f-st-feature-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Make instruction panel stand out more */
.f2f-instruction-panel {
    background-color: #f8f9fa;
    border-left: 4px solid #f38221;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .f2f-st-feature-info {
        flex-direction: column;
    }
    
    .f2f-st-feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}