/* Basic resets for mobile-first design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins',Arial, sans-serif;
}

body {
    
    line-height: 1.6;
  
    color: #333;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header section */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

header a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

header a:hover {
    text-decoration: underline;
}

/* Main heading */
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Button styles */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: white;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

table th {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
}

/* Form styling */
/* Form Container */
.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: auto;
    text-align: center;
    position: relative;
}

/* Background Image */
.form-container::before {
    content: "";
    background: url('../images/lock.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 10px;
}

/* Form Header */
.form-header {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border 0.3s ease;
}

.form-control:focus {
    border: 1px solid #007bff;
    outline: none;
}

/* Buttons */
.form-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-btn:hover {
    background-color: #0056b3;
}

/* Links */
.form-link {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #007bff;
}

.page-link:hover {
    color: #0056b3;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}


/* Responsive Design */
@media screen and (max-width: 480px) {
    .form-container {
        padding: 20px;
    }

    .form-header {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px;
        font-size: 0.9rem;
    }

    .form-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 320px) {
    .form-header {
        font-size: 1.2rem;
    }

    .form-control {
        font-size: 0.8rem;
        padding: 10px;
    }

    .form-btn {
        font-size: 0.8rem;
        padding: 8px;
    }
}


.mb-3 {
    margin-bottom: 15px;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
    /* Adjusting table padding and font sizes for smaller devices */
    .table th, .table td {
        padding: 8px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    /* Full-width buttons for small screens */
    .btn {
        width: 100%;
        margin-top: 10px;
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Table font size and wrapping */
    table th, table td {
        padding: 6px;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    /* Search bar styling */
    .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .d-flex input {
        margin-bottom: 10px;
    }

    /* Table responsive tweaks */
    .table-responsive {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 320px) {
    /* Adjustments for very small screens */
    h1 {
        font-size: 1.3rem;
    }

    table th, table td {
        padding: 5px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 12px;
        font-size: 0.75rem;
    }

    /* Search bar adjustments */
    .d-flex input, .d-flex button {
        font-size: 0.8rem;
    }
}
