/* VMS Simple - Main Stylesheet */
/* Clean, modern design for all three systems */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 15px;
}

.header h1 {
    text-align: center;
    color: #4a5568;
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
}

.header .subtitle {
    text-align: center;
    color: #718096;
    font-size: 1.1em;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-title {
    font-size: 1.5em;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-large {
    padding: 25px 50px;
    font-size: 18px;
    margin: 15px;
    min-width: 250px;
}

.btn-success {
    background: linear-gradient(45deg, #48bb78, #38a169);
}

.btn-danger {
    background: linear-gradient(45deg, #f56565, #e53e3e);
}

.btn-warning {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
}

.btn-info {
    background: linear-gradient(45deg, #4299e1, #3182ce);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    padding: 10px;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 10px;
}

.col-md-12 {
    flex: 0 0 100%;
    padding: 10px;
}

/* Home Page Button Layout */
.home-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
}

.home-button {
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background: #f7fafc;
}

/* Status badges */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fed7d7;
    color: #c53030;
}

.status-approved {
    background: #c6f6d5;
    color: #2d7d32;
}

.status-rejected {
    background: #fed7d7;
    color: #c53030;
}

.status-active {
    background: #bee3f8;
    color: #2b6cb0;
}

.status-completed {
    background: #d1fae5;
    color: #047857;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #c6f6d5;
    border-color: #38a169;
    color: #2d7d32;
}

.alert-danger {
    background: #fed7d7;
    border-color: #e53e3e;
    color: #c53030;
}

.alert-info {
    background: #bee3f8;
    border-color: #4299e1;
    color: #2b6cb0;
}

.alert-warning {
    background: #faf089;
    border-color: #ed8936;
    color: #b7791f;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5568;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background: #e2e8f0;
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* QR Code */
.qr-code {
    text-align: center;
    margin: 20px 0;
}

.qr-code img {
    max-width: 200px;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
    }
    
    .btn-large {
        min-width: auto;
        width: 100%;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.float-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}