* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #00ff00;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.container h2 {
    text-align: center;
    color: #00ff00;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ff00;
    font-weight: 500;
    text-shadow: 0 0 5px #00ff00;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #00ff00;
    border-radius: 3px;
    font-size: 14px;
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 20px #00ff00;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #000000;
    border-color: #008f00;
    color: #008f00;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #008f00;
    color: #000000;
}

.btn-danger {
    background: #000000;
    border-color: #ff0000;
    color: #ff0000;
}

.btn-danger:hover {
    background: #ff0000;
    color: #000000;
    box-shadow: 0 0 20px #ff0000;
}

.btn-success {
    background: #000000;
    border-color: #00ff00;
    color: #00ff00;
}

.btn-success:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 20px #00ff00;
}

.btn-small {
    width: auto;
    padding: 8px 15px;
    font-size: 14px;
}

.alert {
    padding: 12px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    border: 2px solid;
    font-family: 'Courier New', Courier, monospace;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.link {
    text-align: center;
    margin-top: 20px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

.link a {
    color: #00ff00;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 0 5px #00ff00;
}

.link a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px #00ff00;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #000000;
}

.header {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #00ff00;
    font-size: 24px;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

.logout-btn {
    padding: 8px 20px;
    background: #000000;
    color: #ff0000;
    border: 2px solid #ff0000;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #ff0000;
    color: #000000;
    box-shadow: 0 0 20px #ff0000;
}

.content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.content h2 {
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #00ff00;
    color: #00ff00;
}

.data-table th {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px #00ff00;
}

.data-table tr:hover {
    background: rgba(0, 255, 0, 0.1);
}

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

.actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.edit-btn {
    background: #000000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

.edit-btn:hover {
    background: #ffff00;
    color: #000000;
    box-shadow: 0 0 10px #ffff00;
}

.delete-btn {
    background: #000000;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.delete-btn:hover {
    background: #ff0000;
    color: #000000;
    box-shadow: 0 0 10px #ff0000;
}

.add-data-form {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #00ff00;
    border-radius: 3px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 32px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', Courier, monospace;
}

.stat-card p {
    font-size: 14px;
    opacity: 0.9;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
