/* Modern CSS for Casino Equipment Manager */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-info {
    text-align: right;
    flex-grow: 1;
    margin-left: 20px;
}

.user-info span {
    display: block;
    margin-bottom: 5px;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #2ecc71;
}

.btn-success:hover {
    background: #27ae60;
}

.btn-info {
    background: #3498db;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.main-header h2 {
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-filter input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    max-width: 100%;
}

.search-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #2c3e50;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover {
    background: #f1f1f1;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

.actions {
    display: flex;
    gap: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    background: #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: #bdc3c7;
}

.pagination a.active {
    background: #3498db;
    color: #fff;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-container h2 {
    margin-top: 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input[type="text"],
.input-group input[type="color"],
.input-group input[type="date"],
.input-group input[type="number"],
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 15px;
        width: 100%;
        text-align: left;
    }
    
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filter input[type="text"],
    .search-filter select {
        width: 100%;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.login-box .input-group {
    margin-bottom: 20px;
}

.login-box .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.login-box .input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

/* Table Container for responsive */
.table-container {
    overflow-x: auto;
}

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

.form-container, .login-box {
    animation: fadeIn 0.5s ease-out;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-closed { background: #e74c3c; color: white; }
.status-active { background: #2ecc71; color: white; }

/* Modern Table Styles */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: 0.9rem;
}

.modern-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.id-col { width: 50px; text-align: center; font-weight: bold; color: #666; }
.name-col { min-width: 180px; }
.special-col { min-width: 150px; }
.date-col { width: 100px; }
.belllink-col { width: 70px; text-align: center; }
.jackpot-col { width: 140px; font-family: monospace; }
.note-col { min-width: 200px; }
.action-col { width: 100px; text-align: center; }

.object-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.special-file {
    background: #e8f4fd;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.change-date {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 4px;
}

.note-text {
    display: block;
    margin-bottom: 5px;
}

code {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
}