/* 
 * P99 Clock - Shared Styles
 * Common styles used across all pages
 */

/* === BUTTONS === */
button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1e3c72;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

button:active {
    transform: translateY(0);
}

button.approve {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

button.deny {
    background: linear-gradient(45deg, #FF5722, #E64A19);
    color: white;
}

button.delete {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

button.suspend {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

button.activate {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.pending {
    background: rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

.badge.approved {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.badge.denied {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.badge.admin {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.badge.delif {
    background: rgba(156, 39, 176, 0.3);
    color: #CE93D8;
}

.badge.user {
    background: rgba(33, 150, 243, 0.3);
    color: #64B5F6;
}

.badge.suspended {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.badge.active {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.badge.unknown {
    background: rgba(158, 158, 158, 0.3);
    color: #bdbdbd;
}

.badge.traveling, .badge.sailing {
    background: rgba(129, 199, 132, 0.3);
    color: #81c784;
}

.badge.docked {
    background: rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

/* === CONTAINERS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* === FORM ELEMENTS === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

select option {
    background: #1e3c72;
    color: white;
}

select optgroup {
    background: #2a5298;
    color: #FFD700;
    font-weight: bold;
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    background: rgba(0, 0, 0, 0.2);
    color: #FFD700;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

table th:hover {
    background: rgba(0, 0, 0, 0.3);
}

table th::after {
    content: ' ↕';
    opacity: 0.3;
}

table th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

table th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* === STATUS MESSAGES === */
.status {
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    text-align: center;
}

.status.success {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid #4CAF50;
}

.status.error {
    background: rgba(244, 67, 54, 0.3);
    border: 1px solid #f44336;
}

.status.warning {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid #FFC107;
}

.status.info {
    background: rgba(33, 150, 243, 0.3);
    border: 1px solid #2196F3;
}

/* === ERROR/LOADING MESSAGES === */
.error-message {
    background: rgba(244, 67, 54, 0.3);
    border: 1px solid #f44336;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #FFD700;
}

/* === BACK LINK === */
.back-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* === HEADINGS === */
h1 {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    color: #FFD700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    color: #FFD700;
    margin-top: 20px;
}

/* === TABS === */
.tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.tab.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #FFD700;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab-content {
    display: none;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
}

.tab-content.active {
    display: block;
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === CARDS === */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* === FOOTER === */
footer {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

footer a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-gold {
    color: #FFD700;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
    }
    
    table {
        font-size: 0.9em;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}

