/* ProTrader786 LMS - Frontend Styles - Updated */
/* Color Scheme: #ff5c40, #e04024, #1f1d1e, #434343 */

/* Student Menu Items */
.pt786-menu-item a {
    color: #1f1d1e !important;
    transition: color 0.3s ease;
}

.pt786-menu-item a:hover {
    color: #ff5c40 !important;
}

.pt786-menu-item.current-menu-item a,
.pt786-menu-item a.active {
    color: #ff5c40 !important;
    font-weight: 600;
}

/* Student Dashboard */
.pt786-student-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: #434343;
    font-size: 18px;
}

/* Quick Navigation Links */
.dashboard-quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #1f1d1e;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-link:hover {
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(255, 92, 64, 0.3);
    border-color: transparent;
}

.nav-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #ff5c40;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon .dashicons {
    color: white;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.stat-details {
    flex: 1;
}

.stat-value {
    font-size: 42px;
    font-weight: bold;
    color: #1f1d1e;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: #434343;
    font-size: 14px;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    margin-top: 0;
    font-size: 20px;
    color: #1f1d1e;
    margin-bottom: 20px;
}

/* Plan Card */
.plan-card {
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    color: white;
}

.plan-card.plan-starter {
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
}

.plan-card.plan-pro {
    background: linear-gradient(135deg, #e04024 0%, #1f1d1e 100%);
}

.plan-card.plan-elite {
    background: linear-gradient(135deg, #1f1d1e 0%, #434343 100%);
}

.plan-card h3 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 15px;
}

.plan-card p {
    margin: 10px 0;
    opacity: 0.95;
}

.plan-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.plan-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
}

/* Progress Chart */
.progress-chart-wrapper {
    position: relative;
    height: 300px;
}

.progress-actions {
    margin-top: 20px;
    text-align: center;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.certificate-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #ff5c40;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cert-icon .dashicons {
    color: white;
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.certificate-card h3 {
    font-size: 18px;
    margin: 15px 0;
    color: #1f1d1e;
}

.cert-number {
    color: #434343;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.cert-date {
    color: #434343;
    font-size: 12px;
    margin: 10px 0;
}

.certificate-card .button {
    margin-top: 15px;
    background: #ff5c40;
    border-color: #e04024;
}

.certificate-card .button:hover {
    background: #e04024;
    border-color: #e04024;
}

/* Dashboard Recent Section */
.dashboard-recent {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-recent h2 {
    margin-top: 0;
    font-size: 20px;
    color: #1f1d1e;
    margin-bottom: 25px;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #434343;
    font-size: 16px;
}

/* View All Link */
.view-all {
    text-align: center;
    margin-top: 25px;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5c40 0%, #e04024 100%);
    transition: width 0.5s ease;
    position: absolute;
}

.progress-text {
    position: relative;
    z-index: 1;
    line-height: 30px;
    font-weight: bold;
    color: #1f1d1e;
    padding: 0 15px;
}

/* Buttons */
.button,
.button-primary {
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.button-primary:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 64, 0.4);
    background: #e04024;
}

.button-secondary {
    background: white;
    color: #ff5c40 !important;
    border: 2px solid #ff5c40;
}

.button-secondary:hover {
    background: #ff5c40;
    color: white !important;
}

/* Enrollment Form */
.pt786-enrollment-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #ff5c40;
}

.pt786-enrollment-form h3 {
    color: #1f1d1e;
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 10px;
}

.pt786-enrollment-form > p {
    color: #434343;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.pt786-enrollment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f1d1e;
    font-size: 14px;
}

.pt786-enrollment-form input,
.pt786-enrollment-form select,
.pt786-enrollment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
    font-family: inherit;
}

.pt786-enrollment-form input:focus,
.pt786-enrollment-form select:focus,
.pt786-enrollment-form textarea:focus {
    border-color: #ff5c40;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 92, 64, 0.1);
}

.pt786-enrollment-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.radio-label:hover {
    border-color: #ff5c40;
    background: #fff5f3;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5c40;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #ff5c40;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-text strong {
    color: #1f1d1e;
    font-size: 15px;
}

.radio-text small {
    color: #666;
    font-size: 13px;
}

.pt786-enrollment-form button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff5c40 0%, #e04024 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pt786-enrollment-form button:hover {
    background: #e04024;
    transform: translateY(-2px);
}

.pt786-enrollment-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#enroll-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

#enroll-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#enroll-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Course Items */
.course-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff5c40;
    transition: all 0.3s;
}

.course-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.course-item.active {
    border-left-color: #e04024;
    background: #fff5f3;
}

/* Notifications */
.pt786-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    font-size: 14px;
    max-width: 300px;
}

.pt786-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.pt786-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pt786-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 92, 64, 0.3);
    border-radius: 50%;
    border-top-color: #ff5c40;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .dashboard-header h1 {
        font-size: 28px;
    }
    
    .pt786-enrollment-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .dashboard-quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pt786-student-dashboard {
        padding: 20px 10px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .certificate-card {
        padding: 20px;
    }
    
    .dashboard-quick-nav {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.pt786-menu-item a:focus,
.button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ff5c40;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pt786-menu-item,
    .pt786-notification,
    .dashboard-quick-nav {
        display: none;
    }
}