* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

button:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #868f9e 0%, #5a626e 100%);
}

.customer-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.customer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.customer-phone {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.customer-date {
    color: #666;
    font-size: 12px;
    margin-bottom: 6px;
}

.customer-notes {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-edit {
    background: #4CAF50;
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-add {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

h1 {
    color: white;
    font-size: 24px;
}

h2, h3 {
    color: #333;
    margin-bottom: 16px;
}

.logout-btn, .user-btn {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.status-expired {
    background: #ffebee;
    color: #f44336;
}

.status-active {
    background: #e8f5e9;
    color: #4CAF50;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.role-admin {
    background: #ff9800;
    color: white;
}

.role-staff {
    background: #2196F3;
    color: white;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-icon {
    text-align: center;
    font-size: 60px;
    margin-bottom: 20px;
}

.error {
    background: #ffebee;
    color: #f44336;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success {
    background: #e8f5e9;
    color: #4CAF50;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.map-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.map-link:hover {
    text-decoration: underline;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.flex-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}