/* public/css/modern.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --sidebar-bg: #1e1e2f;
    --sidebar-text: #e0e0e0;
    --sidebar-active-bg: #27273a;
    --sidebar-active-border: #6a11cb;
    --card-bg: #ffffff;
    --text-color: #495057;
    --heading-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.4s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    transition: all var(--transition-speed);
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all var(--transition-speed);
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    border-bottom: 1px solid #333;
}

#sidebar .sidebar-header h4 {
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--sidebar-text);
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
}

#sidebar ul li a:hover {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-border);
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-border);
}

#content {
    width: calc(100% - 250px);
    padding: 30px;
    min-height: 100vh;
    transition: all var(--transition-speed);
    margin-left: 250px;
}

#content.active {
    width: 100%;
    margin-left: 0;
}

.card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 20px;
    border-bottom: 0;
}

.btn {
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Custom button style for input field height matching */
.btn-input-height {
    padding: 7px 15px;
    height: 40px;
    line-height: 1;
    font-size: 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}

.form-control {
    border-radius: 50px;
    padding: 7px 25px;
    background-color: #f0f2f5;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25);
}

/* Table Styles */
#seesTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

#seesTable thead th {
    background: none;
    color: var(--heading-color);
    font-weight: 700;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

#seesTable tbody tr {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
}

#seesTable tbody tr:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

#seesTable td {
    padding: 20px;
    border: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .btn, .form-control, #seesTable tbody tr {
    animation: fadeInUp 0.6s ease-out forwards;
}
.dataTables_length {
    display: flex;
    align-items: center;
    gap: 10px; /* Adds space between the label and the dropdown */
    margin-bottom: 1rem;
}

.dataTables_length label {
    margin-bottom: 0; /* Removes default bottom margin for better alignment in flexbox */
    font-weight: 500;
}

/*
  Make sure your <select> element has the "custom-select" class
  e.g., <select class="custom-select custom-select-sm form-control form-control-sm">
*/
.dataTables_length .custom-select {
    min-width: 80px;
    border-radius: 50px; /* Matches your .form-control style */

    background-color: #f0f2f5; /* Matches your .form-control style */
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all var(--transition-speed);
}

.dataTables_length .custom-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25); /* Matches your .form-control:focus style */
}

/* Signature Page Mobile Optimizations */
.signature-page-container {
    padding: 10px;
    min-height: 100vh;
    background: var(--background-color);
}

.signature-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.signature-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    text-align: center;
}

.signature-page-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.signature-content {
    padding: 20px;
}

.signature-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.signature-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.signature-title {
    color: var(--heading-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.signature-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.signature-actions {
    text-align: center;
    padding: 20px 0;
}

.btn-signature-submit {
    min-width: 250px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed) ease;
}

.btn-signature-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-signature-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    white-space: nowrap;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .signature-page-container {
        padding: 5px;
    }
    
    .signature-content {
        padding: 15px;
    }
    
    .signature-section {
        padding: 15px;
        margin-bottom: 0;
    }
    
    .signature-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .signature-page-title {
        font-size: 1.2rem;
    }
    
    .signature-header {
        padding: 15px;
    }
    
    .btn-signature-submit {
        min-width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .signature-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .signature-page-container {
        padding: 2px;
    }
    
    .signature-content {
        padding: 10px;
    }
    
    .signature-section {
        padding: 12px;
        border-radius: 8px;
    }
    
    .signature-card {
        border-radius: 10px;
    }
    
    .signature-title {
        font-size: 0.95rem;
    }
    
    .signature-page-title {
        font-size: 1.1rem;
    }
    
    .btn-signature-submit {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}