/* Clinictell Frontend Styles */
.clinictell-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.clinictell-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.clinictell-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2em;
}

.clinictell-auth-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.clinictell-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.clinictell-form h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 20px;
}

.clinictell-form-group {
    margin-bottom: 20px;
}

.clinictell-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.clinictell-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.clinictell-form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.clinictell-btn {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.clinictell-btn:hover {
    background: #2980b9;
}

.clinictell-btn-primary {
    background: #27ae60;
}

.clinictell-btn-primary:hover {
    background: #229954;
}

/* Video Grid */
.clinictell-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.clinictell-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.clinictell-video-card:hover {
    transform: translateY(-5px);
}

.clinictell-video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.clinictell-video-content {
    padding: 20px;
}

.clinictell-video-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.clinictell-video-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.clinictell-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.clinictell-video-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #27ae60;
}

.clinictell-video-duration {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Dashboard */
.clinictell-dashboard {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.clinictell-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.clinictell-welcome {
    font-size: 1.5em;
    color: #2c3e50;
    margin: 0;
}

.clinictell-subscription-status {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.clinictell-status-active {
    color: #27ae60;
    font-weight: 600;
}

.clinictell-status-expired {
    color: #e74c3c;
    font-weight: 600;
}

/* Playback History */
.clinictell-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.clinictell-history-table th,
.clinictell-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.clinictell-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

/* Video Player */
.clinictell-video-player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.clinictell-video-player video {
    width: 100%;
    height: auto;
    max-height: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .clinictell-auth-forms {
        grid-template-columns: 1fr;
    }
    
    .clinictell-video-grid {
        grid-template-columns: 1fr;
    }
    
    .clinictell-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .clinictell-history-table {
        display: block;
        overflow-x: auto;
    }
}

/* Loading States */
.clinictell-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.clinictell-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
}

.clinictell-success {
    color: #27ae60;
    font-size: 0.9em;
    margin-top: 5px;
}