/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Date Comments */
.date-comment {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
    font-style: italic;
    line-height: 1.2;
    
    word-wrap: break-word;
}

/* Login Page */
.login-page {
    background: linear-gradient(120deg, #f8f9fa, #e2e6ea);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
}

.login-card .card-header {
    background: linear-gradient(45deg, #2e8b57, #3cb371);
}

/* Dashboard */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #2e8b57;
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* Customer Table */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.customer-row:hover {
    background-color: #f1f8f1;
    cursor: pointer;
}

.purchase-date {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 5px;
    border-radius: 4px;
}

.purchase-date.purchased {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.purchase-date.past-due {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.purchase-date.next {
    font-weight: bold;
    border: 2px solid #ffc107;
}

.purchase-date.free {
    background-color: #cff4fc;
    color: #055160;
    border-color: #b6effb;
    position: relative;
}

.free-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent #0dcaf0 transparent transparent;
}

/* Date Picker Styles */
.datepicker-dropdown {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: #2e8b57 !important;
    background-image: none;
}

.date-input-group {
    transition: all 0.3s ease;
}

.purchased-date {
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

.date-input-group .remove-date-btn:hover, 
.edit-date-input-group .remove-date-btn:hover {
    background-color: #dc3545;
    color: white;
}

.bootstrap-datepicker-inline {
    width: 100%;
}

/* Buttons and Actions */
.btn-outline-primary {
    color: #2e8b57;
    border-color: #2e8b57;
}

.btn-outline-primary:hover {
    background-color: #2e8b57;
    border-color: #2e8b57;
}

.btn-primary {
    background-color: #2e8b57;
    border-color: #2e8b57;
}

.btn-primary:hover {
    background-color: #3cb371;
    border-color: #3cb371;
}

/* Header */
.app-header {
    background: linear-gradient(45deg, #2e8b57, #3cb371);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        padding-top: 1rem !important;
    }
}
