/* Student Dashboard Styles */
.llb-student-module-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}

/* Login Box */
.llb-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.llb-login-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.llb-login-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #003366;
}

.llb-form-group {
    margin-bottom: 15px;
}

.llb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.llb-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.llb-btn-login {
    width: 100%;
    padding: 12px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.llb-btn-login:hover {
    background: #001f3f;
}

#llb-login-message {
    margin-bottom: 15px;
}

/* Dashboard */
.llb-dashboard-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.llb-dashboard-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.llb-dashboard-header h2 {
    margin: 0;
    font-size: 20px;
}

.llb-btn-logout {
    background: #555;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.llb-btn-logout:hover {
    background: #333;
}

.llb-dashboard-nav {
    display: flex;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.llb-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.llb-tab-btn:hover {
    background: #e9ecef;
}

.llb-tab-btn.active {
    color: #003366;
    border-bottom-color: #003366;
    background: #fff;
}

.llb-dashboard-content {
    padding: 30px;
}

.llb-tab-pane {
    display: none;
}

.llb-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Profile Grid */
.llb-profile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.llb-profile-photo-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #ddd;
}

.llb-profile-photo-placeholder {
    width: 150px;
    height: 150px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
    border: 3px solid #ddd;
}

.llb-profile-details p {
    margin: 0 0 10px 0;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

/* Documents */
.llb-upload-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px dashed #ccc;
}

.llb-form-group-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.llb-form-group-inline select, 
.llb-form-group-inline input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.llb-btn-primary {
    background: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.llb-btn-primary:hover {
    background: #001f3f;
}

.llb-btn-secondary {
    background: #f0f0f1;
    color: #2271b1;
    border: 1px solid #2271b1;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
}

.llb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.llb-table th, .llb-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}

.llb-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ID Card Styles */
.llb-id-card-actions {
    margin-bottom: 20px;
    text-align: right;
}

.llb-id-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.llb-id-card {
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.id-card-header {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
}

.id-card-header .college-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.id-card-header .college-sub {
    margin: 5px 0 0 0;
    font-size: 10px;
    opacity: 0.9;
}

.id-badge {
    background: #fff;
    color: #003366;
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 8px;
}

.id-card-body {
    padding: 15px;
    display: flex;
    gap: 15px;
}

.id-photo-col img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #003366;
    border-radius: 4px;
}

.photo-placeholder {
    width: 80px;
    height: 100px;
    background: #eee;
    border: 2px solid #003366;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.id-details-col {
    flex: 1;
}

.id-details-col p {
    margin: 0 0 4px 0;
    font-size: 11px;
    line-height: 1.4;
}

.student-name {
    font-weight: bold;
    font-size: 14px !important;
    color: #003366;
    margin-bottom: 6px !important;
}

.student-address {
    font-size: 10px !important;
    line-height: 1.2 !important;
    margin-top: 8px !important;
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f9f9f9;
    font-size: 10px;
    border-top: 1px dashed #ccc;
}

.holder-sign {
    border-top: 1px solid #333;
    padding-top: 3px;
    margin-top: 20px;
}

.auth-sign {
    border-top: 1px solid #333;
    padding-top: 3px;
    margin-top: 20px;
}

/* Responsiveness */
@media(max-width: 600px) {
    .llb-dashboard-nav {
        flex-direction: column;
    }
    
    .llb-tab-btn {
        text-align: left;
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }
    
    .llb-tab-btn.active {
        border-bottom-color: #ddd;
        border-left-color: #003366;
    }

    .llb-profile-grid {
        flex-direction: column;
    }
}

/* Print ID Card specific */
@media print {
    body.print-id-mode * {
        visibility: hidden !important;
    }
    body.print-id-mode #llb-id-card-element, 
    body.print-id-mode #llb-id-card-element * {
        visibility: visible !important;
    }
    body.print-id-mode #llb-id-card-element {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        box-shadow: none;
        border: 1px solid #003366;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
