/* IELTS Frontend Styles */

/* General */
.ielts-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #856404;
    margin: 20px 0;
}

.ielts-notice a {
    color: #0056b3;
    font-weight: 600;
}

/* Test List */
.ielts-test-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ielts-test-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ielts-test-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Buttons */
.ielts-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ielts-btn:hover {
    background: #5a6fd6;
    color: #fff;
}

.ielts-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.ielts-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* My Tests / History */
.ielts-my-tests {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ielts-my-tests h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.ielts-history-table {
    width: 100%;
    border-collapse: collapse;
}

.ielts-history-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.ielts-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ielts-history-table tr:hover {
    background: #f9f9f9;
}

.ielts-history-table a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.ielts-history-table a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ielts-test-list {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 8px 0;
    }
    
    .ielts-test-card {
        border-radius: 10px;
        padding: 15px;
    }
    
    .ielts-test-card h3 {
        font-size: 16px;
    }
    
    .ielts-notice {
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 13px;
        margin: 8px 0;
    }
    
    .ielts-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .ielts-my-tests {
        border-radius: 10px;
        padding: 15px;
    }
    
    .ielts-my-tests h3 {
        font-size: 16px;
        padding-bottom: 8px;
    }
    
    /* History table - horizontal scroll wrapper */
    .ielts-my-tests {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ielts-history-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .ielts-history-table th,
    .ielts-history-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    .ielts-history-table th {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .ielts-test-card {
        padding: 12px;
    }
    
    .ielts-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
