/* Global Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #00acc1;
    --accent-color: #ff5722;
    --dark-color: #0d0d1a;
    --light-color: #f5f5f5;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: rgba(13, 13, 26, 0.9);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo-container {
    width: 80px;
    height: 80px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content Styles */
main {
    margin-top: 120px;
    padding: 2rem;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.data-section {
    margin-bottom: 3rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.data-card {
    background-color: rgba(26, 35, 126, 0.3);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.data-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.data-content {
    color: var(--light-color);
    font-size: 1.1rem;
}

.editable {
    cursor: pointer;
    position: relative;
}

.editable::after {
    content: '✎';
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editable:hover::after {
    opacity: 1;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: rgba(13, 13, 26, 0.9);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    backdrop-filter: blur(5px);
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color), #1a1a2e);
}

.login-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: rgba(13, 13, 26, 0.8);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-animation-container {
    margin-bottom: 2rem;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.logo-move-up {
    transform: translateY(-100px);
    opacity: 0;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.nfc-prompt {
    margin-top: 2rem;
    color: var(--secondary-color);
}

.nfc-icon {
    font-size: 3rem;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
    
    main {
        margin-top: 150px;
        padding: 1rem;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
}
