/* SignOn Application Styles */

html, body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
}

/* Layout */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Sidebar for Staff Layout */
.sidebar {
    background: linear-gradient(180deg, #1e3a5f 0%, #2c5282 100%);
    min-height: 100vh;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Status badges */
.badge {
    font-weight: 500;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-primary:hover {
    background-color: #1e3a5f;
    border-color: #1e3a5f;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3182ce 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 1rem;
}

/* Guest layout */
.guest-header {
    background: linear-gradient(90deg, #2c5282 0%, #3182ce 100%);
    color: white;
    padding: 1rem;
}

/* Signature pad */
#signatureCanvas {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
