@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0e1114 0%, #1b242c 100%);
    min-height: 100vh;
    padding: 20px;
}

.backend-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.backend-header {
    background: linear-gradient(120deg, #5b040b, #b30918);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backend-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.backend-main {
    padding: 30px;
}

.events-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

.event-name {
    font-size: 18px;
    font-weight: 600;
    color: #b30918;
    margin-bottom: 5px;
}

.event-id {
    font-size: 12px;
    color: #b30918;
    font-family: monospace;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.event-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d4f, #b30918);
    color: white;
    box-shadow: 0 10px 20px rgba(179, 9, 24, 0.35);
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6668, #d0101f);
    box-shadow: 0 14px 28px rgba(179, 9, 24, 0.45);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: #3a4350;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-control {
    background: #b30918;
    color: white;
    width: 100%;
}

.btn-control:hover {
    background: #960713;
}

.btn-view {
    background: #4b5563;
    color: white;
    width: 100%;
}

.btn-view:hover {
    background: #3a4350;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select:hover {
    border-color: #cbd5e0;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 18px;
}

.backend-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design - Tablets */
@media (max-width: 1024px) {
    .backend-header {
        padding: 20px;
    }

    .backend-header h1 {
        font-size: 24px;
    }

    .backend-main {
        padding: 20px;
    }

    .events-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .modal-content {
        margin: 20px auto;
        padding: 20px;
        max-height: calc(100vh - 40px);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .backend-container {
        border-radius: 8px;
    }

    .backend-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        text-align: center;
    }

    .backend-header h1 {
        font-size: 20px;
    }

    .backend-main {
        padding: 15px;
    }

    .events-section h2 {
        font-size: 20px;
    }

    .events-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .event-card {
        padding: 15px;
    }

    .event-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .event-actions {
        width: 100%;
        flex-direction: column;
    }

    .modal {
        padding: 10px;
    }

    .modal-content {
        margin: 10px auto;
        padding: 20px;
        width: 95%;
        max-height: calc(100vh - 20px);
    }

    .modal-content h2 {
        font-size: 20px;
        padding-right: 30px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .backend-header h1 {
        font-size: 18px;
    }

    .modal-content {
        padding: 15px;
    }

    .close {
        right: 10px;
        top: 10px;
        font-size: 24px;
    }
}

