/* EduBooking Pro - Frontend Styles */

/* General */
.ebp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.ebp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.ebp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ebp-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ebp-btn:disabled,
.ebp-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.ebp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.ebp-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653b8e 100%);
    color: #fff;
    border-color: #5568d3;
}

.ebp-btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.ebp-btn-secondary:hover {
    background: #f9fafb;
    color: #1f2937;
    border-color: #9ca3af;
}

.ebp-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-color: #10b981;
}

.ebp-btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    border-color: #059669;
}

.ebp-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #ef4444;
}

.ebp-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    border-color: #dc2626;
}

/* Forms */
.ebp-form-group {
    margin-bottom: 20px;
}

.ebp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.ebp-form-group input[type="text"],
.ebp-form-group input[type="email"],
.ebp-form-group input[type="tel"],
.ebp-form-group input[type="number"],
.ebp-form-group input[type="date"],
.ebp-form-group input[type="time"],
.ebp-form-group input[type="password"],
.ebp-form-group select,
.ebp-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
}

.ebp-form-group input:focus,
.ebp-form-group select:focus,
.ebp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ebp-form-group input:hover,
.ebp-form-group select:hover,
.ebp-form-group textarea:hover {
    border-color: #d1d5db;
}

.ebp-form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.ebp-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

/* Mentor Registration */
.ebp-mentor-registration {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ebp-mentor-registration h2 {
    margin-bottom: 30px;
    color: #1d2327;
}

/* Mentor Card */
.ebp-mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.ebp-mentor-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.ebp-mentor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ebp-mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.ebp-mentor-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ebp-mentor-expertise {
    color: #666;
    margin-bottom: 10px;
}

.ebp-mentor-rating {
    color: #f39c12;
    margin-bottom: 15px;
}

/* Dashboard */
.ebp-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
    max-width: 1400px;
}

.ebp-dashboard-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 20px;
}

.ebp-dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ebp-dashboard-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ebp-dashboard-nav li:last-child {
    border-bottom: none;
}

.ebp-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ebp-dashboard-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-left: 28px;
}

.ebp-dashboard-nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-left: 4px solid #fff;
    padding-left: 20px;
}

.ebp-dashboard-nav a i.dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ebp-dashboard-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ebp-dashboard-content h2 {
    margin: 0 0 30px 0;
    color: #1d2327;
    font-size: 28px;
    font-weight: 600;
}

/* Welcome Section */
.ebp-mentor-welcome,
.ebp-student-welcome {
    padding: 30px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ebp-mentor-welcome img,
.ebp-student-welcome img {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-bottom: 15px;
}

.ebp-mentor-welcome h3,
.ebp-student-welcome h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.ebp-mentor-role,
.ebp-student-role {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
}

/* Stats Grid */
.ebp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ebp-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ebp-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ebp-stat-icon {
    font-size: 48px;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 20px;
}

.ebp-stat-content {
    position: relative;
    z-index: 1;
}

.ebp-stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.ebp-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Booking Form */
.ebp-booking-form {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Bookings Table */
.ebp-bookings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ebp-bookings-table th,
.ebp-bookings-table td {
    padding: 16px;
    text-align: left;
}

.ebp-bookings-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ebp-bookings-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.ebp-bookings-table tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ebp-bookings-table tbody tr:last-child {
    border-bottom: none;
}

/* Booking Cards (Alternative Layout) */
.ebp-bookings-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ebp-booking-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ebp-booking-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ebp-booking-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #667eea;
}

.ebp-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ebp-mentor-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ebp-mentor-info img {
    border-radius: 50%;
    border: 2px solid #667eea;
}

.ebp-mentor-info h4 {
    margin: 0 0 4px 0;
    color: #1d2327;
    font-size: 18px;
}

.ebp-mentor-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ebp-booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
}

.ebp-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.ebp-detail i.dashicons {
    color: #667eea;
    font-size: 18px;
}

.ebp-booking-notes {
    padding: 12px;
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.ebp-booking-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Status Badges */
.ebp-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebp-status-pending {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #856404;
}

.ebp-status-confirmed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.ebp-status-completed {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.ebp-status-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

/* Buttons - Modern Style */
.ebp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ebp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ebp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ebp-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
}

.ebp-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    border: 2px solid #e0e0e0;
}

.ebp-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

.ebp-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.ebp-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Filters */
.ebp-bookings-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
    overflow-x: auto;
}

.ebp-bookings-filter a {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.ebp-bookings-filter a:hover {
    background: #fff;
    color: #667eea;
}

.ebp-bookings-filter a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

/* Empty State */
.ebp-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ebp-empty-state i.dashicons {
    font-size: 80px;
    color: #ddd;
    width: 80px;
    height: 80px;
}

.ebp-empty-state h3 {
    margin: 20px 0 10px;
    color: #666;
}

.ebp-empty-state p {
    color: #999;
    margin-bottom: 24px;
}

/* Messages */
.ebp-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ebp-message-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.ebp-message-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.ebp-message-info {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

/* Availability Scheduler */
.ebp-availability-day {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ebp-availability-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ebp-time-slot {
    padding: 8px 16px;
    background: #f0f0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ebp-time-slot:hover {
    background: #dcdcde;
}

.ebp-time-slot.selected {
    background: #0073aa;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .ebp-dashboard {
        grid-template-columns: 1fr;
    }
    
    .ebp-mentors-grid {
        grid-template-columns: 1fr;
    }
    
    .ebp-dashboard-sidebar {
        position: static;
    }
}