/* assets/css/style.css */

/* This file can be used for more specific custom styles not easily handled by Tailwind */

/* Example: Custom scrollbar (optional, for aesthetics) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a202c; /* Dark background */
}

::-webkit-scrollbar-thumb {
    background: #6b46c1; /* Purple thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #805ad5; /* Lighter purple on hover */
}

/* Ensure main content pushes footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Specific styles for transparent buttons (already in header, but can be extended here) */
.transparent-button {
    /* Defined in header.php for easy access to PHP variables, but can be moved here */
}

/* Responsive adjustments for forms/cards */
.form-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Input field styling */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e7ff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a78bfa; /* Purple-400 */
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5); /* Purple shadow */
}

/* Placeholder color */
input::placeholder,
textarea::placeholder {
    color: rgba(224, 231, 255, 0.6);
}

/* Table styling */
.space-table {
    width: 100%;
    border-collapse: collapse;
}

.space-table th,
.space-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.space-table th {
    background-color: rgba(109, 40, 217, 0.3); /* Purple-700 with transparency */
    font-weight: 600;
    color: #c4b5fd; /* Purple-300 */
}

.space-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03); /* Slight stripe effect */
}

.space-table tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Admin panel specific button styling */
.admin-button-primary {
    @apply bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded-lg transition-colors duration-200;
}

.admin-button-danger {
    @apply bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-lg transition-colors duration-200;
}

.admin-button-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white font-bold py-2 px-4 rounded-lg transition-colors duration-200;
}

/* Message Box Styling */
.message-box {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #e0e7ff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    max-width: 90%;
    width: 400px;
}

.message-box-header {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #a78bfa;
}

.message-box-content {
    margin-bottom: 1.5rem;
}

.message-box-footer {
    text-align: right;
}

.message-box-button {
    background-color: #6d28d9; /* Purple-700 */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
}

.message-box-button:hover {
    background-color: #5b21b6; /* Purple-800 */
}

/* Overlay for message box */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1500;
}

