/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #23284a;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(35,40,74,0.5), rgba(35,40,74,0.5)), url('../images/background.webp') no-repeat center center fixed;
    background-size: cover;
    background-position: center;
}

/* Moving Particles - Disabled */
body::after {
    display: none;
}

/* Background animation disabled */

/* Floating particles animation disabled */

/* Subtle Wave Effect - Static */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(35,40,74,0.95) 0%, 
        rgba(67,160,71,0.05) 25%, 
        rgba(35,40,74,0.95) 50%, 
        rgba(102,187,106,0.05) 75%, 
        rgba(35,40,74,0.95) 100%);
    pointer-events: none;
    z-index: -3;
}

/* Wave gradient animation disabled */

/* Common Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #6eea00;
    color: #fff;
}

.btn-primary:hover {
    background: #4caf50;
}

.btn-secondary {
    background: #fff;
    color: #6eea00;
    border: 1px solid #6eea00;
}

.btn-secondary:hover {
    background: #eaffd6;
}

.btn-success {
    display: block;
    width: 100%;
    margin: 0 auto;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

/* Common Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6eea00;
}

/* Common Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Common Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Common Card Styles */

/* Common Text Styles */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Common Margin & Padding */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Common Flex Utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* Common Grid Utilities */
.grid {
    display: grid;
    gap: 1rem;
}

/* Common Responsive Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* Loại bỏ tất cả background động trên mobile */
    body::before,
    body::after {
        display: none !important;
    }
    
    .wave-background {
        display: none !important;
    }
    
    body {
        /* Background tĩnh đơn giản cho mobile */
        background: #23284a !important;
        background-image: none !important;
    }
}