/* Base Styles for Login and Student Pages */
body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(135deg, #66ea99ef 0%, #4b95a2 100%);
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Space for fixed footer */
    direction: rtl;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 58, 36, 0.692);
    animation: fadeIn 0.5s ease-in;
}

.form-panel {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #21aa76;
    margin-bottom: 35px;
    text-align: center;
}

.table-panel {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #28a745;
    margin-bottom: 35px;
}

h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: hsla(152, 100%, 34%, 0.986);
}

h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #000000;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

input, select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: #000000;
    outline: none;
}

button {
    background: linear-gradient(135deg, #00a56e, #00a37a);
    color: white;
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    width: auto;
    font-size: 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

#message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

#message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Student Card Styles */
.student-card {
    background: linear-gradient(135deg, #4fe9bb 0%, #4b54a2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-in;
}

.student-card h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: bold;
}

.info-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px;
    font-size: 18px;
    text-align: right;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.info-item strong {
    display: inline-block;
    width: 120px;
}

#backBtn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: auto;
}

#backBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 16px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 18px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Desktop Enhancements for Computer Mode */
@media (min-width: 769px) {
    .container {
        max-width: 500px; /* Compact width */
        width: 50%; /* Balanced width for square shape */
        padding: 30px; /* Moderate padding */
        min-height: 450px; /* Taller for squarer appearance */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1 {
        font-size: 34px; /* Slightly larger title */
    }

    h2 {
        font-size: 26px; /* Slightly larger subtitle */
    }

    .form-panel {
        padding: 30px; /* Moderate padding for form */
    }

    input, select {
        padding: 14px; /* Moderate input padding */
        font-size: 16px; /* Standard font */
    }

    button {
        width: 100%; /* Full width for wider button */
        padding: 16px 32px; /* Even larger padding */
        font-size: 20px; /* Even larger font */
        margin: 0 auto; /* Center the button */
    }

    label {
        font-size: 18px; /* Larger labels */
    }
}

/* Desktop Enhancements for Computer Mode */
@media (min-width: 769px) {
    .container {
        max-width: 1000px; /* Wider for desktop */
        width: 80%; /* Adjust width */
        padding: 40px; /* More padding */
    }

    h1 {
        font-size: 40px; /* Larger title */
    }

    h2 {
        font-size: 32px; /* Larger subtitle */
    }

    .form-panel, .table-panel {
        padding: 40px; /* More padding */
    }

    .student-card {
        padding: 40px; /* More padding */
    }

    .student-card h2 {
        font-size: 36px; /* Larger name */
    }

    .info-item {
        font-size: 20px; /* Larger info */
    }

    input, select {
        padding: 16px; /* Larger inputs */
        font-size: 18px;
    }

    button {
        padding: 16px 32px; /* Larger buttons */
        font-size: 18px;
    }

    table {
        font-size: 18px; /* Larger table text */
    }

    th, td {
        padding: 16px; /* Larger table cells */
    }

    th {
        font-size: 20px; /* Larger headers */
    }

    .book-card {
        padding: 25px; /* Larger cards */
        margin-bottom: 20px;
    }

    .book-card h3 {
        font-size: 28px; /* Larger book titles */
    }

    .book-price {
        font-size: 20px; /* Larger price */
        padding: 12px 20px;
    }

    .request-btn {
        padding: 16px 32px; /* Larger request button */
        font-size: 18px;
    }

    .notification-card {
        padding: 25px; /* Larger notifications */
    }

    .notification-header {
        font-size: 18px;
    }

    .notification-message {
        font-size: 18px;
    }

    /* Footer adjustments for desktop */
    .footer {
        padding: 20px 30px;
        font-size: 18px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0;
        padding-bottom: 60px; /* Reduced for mobile */
    }

    .container {
        width: 100%;
        padding: 0;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    .form-panel, .table-panel {
        padding: 10px;
    }

    .student-card {
        padding: 20px;
    }

    .student-card h2 {
        font-size: 24px;
    }

    .info-item {
        font-size: 16px;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    th {
        font-size: 16px;
    }

    .book-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 20px;
    }

    .book-card h3 {
        font-size: 20px;
    }

    .book-price {
        font-size: 16px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .request-modal-content {
        padding: 20px;
        border-radius: 15px;
        width: 95%;
    }

    .request-modal h3 {
        font-size: 22px;
    }

    .request-form-group label {
        font-size: 16px;
    }

    .request-form-group input {
        padding: 8px;
        font-size: 14px;
    }

    .request-modal-buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .request-btn {
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 10px;
        width: 100%;
        max-width: 250px;
    }

    /* Footer adjustments for mobile */
    .footer {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Notification Card Styles */
.notification-card {
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #f0f8ff, #ffffff);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-icon {
    font-size: 24px;
}

.notification-date {
    font-size: 14px;
    color: #666;
}

.notification-time {
    font-size: 14px;
    color: #666;
}

.notification-message {
    font-size: 16px;
    color: #333;
}

.notification-full {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    display: none;
}

.notification-card.unread {
    font-weight: bold;
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffeaa7, #ffffff);
}

.notification-card.unread::before {
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
}

@media (max-width: 480px) {
    body {
        padding-bottom: 50px; /* Further reduced for small mobile */
    }

    .container {
        width: 100%;
        padding: 0;
        border-radius: 10px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    input, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .info-item strong {
        width: 100px;
        font-size: 16px;
    }

    /* Footer adjustments for small mobile */
    .footer {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Book Card Styles - VIP Design */
.book-card {
    background: linear-gradient(135deg, #006168, #006891, #00203a);
    border: 3px solid #000;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00ff88, #00db9a, #00ff95);
}

.book-card:hover {
    box-shadow: 0 15px 30px rgba(15, 15, 15, 0.6);
    background: linear-gradient(135deg, #006168, #006891, #00203a);
}

.book-card h3 {
    margin: 0 0 15px 0;
    font-size: 26px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.book-card p {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.book-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-price {
    background: linear-gradient(135deg, #000, #333);
    color: #00cf8a;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: inline-block;
    border: 2px solid #16a054;
}

.request-btn {
    background: linear-gradient(135deg, #000, #333);
    color: #00e990;
    border: 2px solid #00da7f;
    padding: 15px 40px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 15px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
}

.request-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #333, #000);
}

.transfer-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 2px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.transfer-info p {
    margin: 0;
    font-size: 14px;
    color: #1976d2;
}

.transfer-info strong {
    font-size: 16px;
    color: #0d47a1;
}

/* Request Modal Styles - VIP Design */
.request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    direction: rtl;
}

.request-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #006168, #006891, #00203a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgb(0, 0, 0);
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 3px solid #ffffff;
}

.request-modal h3 {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.request-form-group {
    margin-bottom: 15px;
    text-align: right;
}

.request-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
}

.request-form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #000000;
    border-radius: 10px;
    background-color: #ebebeb;
    font-size: 16px;
}

.request-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.request-modal-buttons button {
    background: linear-gradient(135deg, #161616, #002c1d);
    color: #ffffff;
    border: 2px solid #008568;
    padding: 12px 30px;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.request-modal-buttons button:last-child {
    background: linear-gradient(135deg, #000000, #1b1b1b);
    color: #ffffff;
    border-color: #008839;
}

.request-modal-buttons button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #002e1f, #000);
}

.request-modal.show {
    display: block;
}

/* Footer Styles */
.footer {
    background-color: #292929;
    color: white;
    text-align: center;
    padding: 15px 20px;
    border-top: 3px solid #007bff;
    font-size: 16px;
    margin-top: 20px;
    direction: rtl;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left {
    flex: 1;
    text-align: right;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
}

.footer-developer {
    font-size: 14px;
    color: #ccc;
}


@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
}