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

:root {
    --primary-color: #3273c4;
    --secondary-color: #38a169;
    --danger-color: #e05252;
    --warning-color: #f59e0b;
    --success-color: #38a169;
    --text-color: #e0e0e0;
    --secondary-text-color: #adb5bd;
    --light-color: #333333;
    --dark-color: #1e1e1e;
    --border-color: #404040;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --card-bg: #252525;
    --hover-bg: #383838;
    --body-bg: #222222;
    --input-bg: #2a2a2a;
    --navbar-height: 60px;
    --footer-height: 50px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 50%, #1e2030 100%) fixed;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333333' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 20px;
    width: 100%;
    /* max-width constraint removed to allow full-width layout */
    padding-top: calc(var(--navbar-height) + 20px);
    padding-bottom: calc(var(--footer-height) + 20px);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e1e1e 0%, #252836 50%, #1e2030 100%);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--footer-height);
    z-index: 100;
}

.author {
    margin: 0;
    font-size: 0.9rem;
}

.author a {
    color: #4d8cce;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.author a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.version {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, #2e61a1 0%, #3273c4 50%, #2c5d98 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3273c4 0%, #3883e0 50%, #3273c4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-success {
    background: linear-gradient(135deg, #2d8757 0%, #38a169 50%, #2a7d50 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #3db476 50%, #38a169 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #ef5350;
}

.btn-edit, .btn-delete {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-edit {
    background: linear-gradient(135deg, #2e61a1 0%, #3273c4 50%, #2c5d98 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #3273c4 0%, #3883e0 50%, #3273c4 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #c73c3c 0%, #e05252 50%, #bd3838 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #e05252 0%, #f45a5a 50%, #e05252 100%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .content {
        padding: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Notification System */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.notification {
    background-color: var(--card-bg);
    border-left: 4px solid;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    animation: slideIn 0.3s ease, fadeOut 0.5s ease forwards;
    animation-delay: 0s, 4.5s;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.notification.success {
    border-left-color: #38a169;
}

.notification.success::before {
    background-color: rgba(56, 161, 105, 0.1);
}

.notification.error {
    border-left-color: #e05252;
}

.notification.error::before {
    background-color: rgba(224, 82, 82, 0.1);
}

.notification.info {
    border-left-color: #3273c4;
}

.notification.info::before {
    background-color: rgba(50, 115, 196, 0.1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.2;
    z-index: -1;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-message {
    flex-grow: 1;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

.notification.success .notification-progress {
    background-color: #38a169;
}

.notification.error .notification-progress {
    background-color: #e05252;
}

.notification.info .notification-progress {
    background-color: #3273c4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Easter Egg Animation */
.easter-boat {
    position: absolute;
    bottom: 38px; /* Position above the footer */
    right: -100px; /* Start off-screen to the right */
    z-index: 1001;
    pointer-events: none;
    animation: sailBoat 10s linear forwards;
}

.easter-boat img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes sailBoat {
    0% {
        right: -100px;
        transform: translateY(5px) rotate(0deg);
    }
    5% {
        transform: translateY(0) rotate(2deg);
    }
    10% {
        transform: translateY(5px) rotate(-2deg);
    }
    15% {
        transform: translateY(0) rotate(1deg);
    }
    20% {
        transform: translateY(5px) rotate(-1deg);
    }
    25% {
        transform: translateY(0) rotate(2deg);
    }
    30% {
        transform: translateY(5px) rotate(-2deg);
    }
    35% {
        transform: translateY(0) rotate(1deg);
    }
    40% {
        transform: translateY(5px) rotate(-1deg);
    }
    45% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(5px) rotate(-2deg);
    }
    55% {
        transform: translateY(0) rotate(1deg);
    }
    60% {
        transform: translateY(5px) rotate(-1deg);
    }
    65% {
        transform: translateY(0) rotate(2deg);
    }
    70% {
        transform: translateY(5px) rotate(-2deg);
    }
    75% {
        transform: translateY(0) rotate(1deg);
    }
    80% {
        transform: translateY(5px) rotate(-1deg);
    }
    85% {
        transform: translateY(0) rotate(2deg);
    }
    90% {
        transform: translateY(5px) rotate(-2deg);
    }
    95% {
        transform: translateY(0) rotate(1deg);
    }
    100% {
        right: calc(100% + 100px);
        transform: translateY(5px) rotate(0deg);
    }
}
