/* Main CSS file for HTTP Server with Login System - PlaneVision Inspired Design */

/* Common styles */
body {
    background: #0f0f0f;
    font-family: Roboto,Arial, Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #ffffff;
    line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Login page styles */
.login-container {
    margin-top: 8%;
    padding: 20px;
}

.login-card {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    max-width: 450px;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid #333;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.w3-button {
    border-radius: 6px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button {
    background: orange;
    color: black;
    padding: 12px 30px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.login-button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    color:white;
}

/* Admin panel styles */
.admin-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #066aab; 
    animation: shimmer 4s infinite;
}

.admin-container {
    margin-top: 2%;
    padding: 20px;
}

.admin-card {
    max-width: 1000px;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    overflow: hidden;
}

/* User page styles */
.user-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

.user-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

.user-container {
    margin-top: 2%;
    padding: 20px;
}

.user-card {
    max-width: 1000px;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    overflow: hidden;
}

.user-card-wide {
    max-width: 1400px;
    margin: auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    overflow: hidden;
}

/* File display styles */
.file-card {
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-card:hover {
    border-color: #0066cc;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.file-icon {
    margin-right: 10px;
}

.pdf-icon {
    color: #ff4444;
}

.file-button {
    margin-left: 10px;
}

/* File list improvements */
.file-row {
    align-items: center;
    padding: 8px 0;
}

.file-name {
    font-weight: 500;
    margin: 0;
    color: black;
}

.file-date {
    color: #666;
    font-size: 0.9em;
}

.file-actions {
    text-align: right;
}

.file-actions .w3-button {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 0.8em;
}

/* New vertical file layout */
.file-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px;
    background: white;
    color: black;
    border-radius: 8px;
    border: 1px solid orange;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #0066cc;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.file-name-section {
    border-bottom: 1px solid orange;
    padding-bottom: 5px;
}

.file-name-section .file-name {
    font-size: 1em;
    color: black;
    margin: 0;
    font-weight: 500;
}

.file-name-wide {
    width: 100%;
}

.file-details-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.file-details-section .file-date {
    width: 50%;
    min-width: 120px;
}

.file-details-section .file-actions {
    width: 40%;
    justify-content: flex-end;
}

.file-date {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-actions .w3-button {
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-actions .w3-blue {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
}

.file-actions .w3-blue:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.file-actions .w3-green {
    background: linear-gradient(135deg, #00cc66 0%, #00994d 100%);
    color: white;
    border: none;
}

.file-actions .w3-green:hover {
    background: linear-gradient(135deg, #00b359 0%, #008040 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 204, 102, 0.3);
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: #0066cc;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.breadcrumb-current {
    color: #888;
    font-weight: 500;
    padding: 6px 12px;
    background: #333;
    border-radius: 6px;
}

/* Folder links */
.folder-link {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.folder-link:hover {
    color: #0066cc;
    text-decoration: none;
    transform: translateX(5px);
}

/* Responsive file list */
@media (max-width: 768px) {
    .file-row .w3-col {
        margin-bottom: 5px;
    }
    
    .file-actions {
        text-align: left;
    }
}

/* Form styles */
.form-section {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: #2a2a2a;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: #2a2a2a;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00cc66 0%, #00994d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 204, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00b359 0%, #008040 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 102, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e63939 0%, #b32929 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6b7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* Table styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.users-table th {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tr {
    transition: all 0.3s ease;
}

.users-table tr:hover {
    background: #2a2a2a;
    transform: scale(1.01);
}

.users-table td {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        margin-top: 5%;
        padding: 10px;
    }
    
    .admin-card,
    .user-card {
        margin: 10px;
    }
    
    .users-table {
        font-size: 14px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.p-16 {
    padding: 16px;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bg-white {
    background-color: white;
}

.bg-light-grey {
    background-color: #f9f9f9;
}

.bg-pale-yellow {
    background-color: #fffacd;
}

.border {
    border: 1px solid #ddd;
}

/* Alert styles */
.alert {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
}

.alert-info {
    color: #ffffff;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.alert-warning {
    color: #ffffff;
    background: linear-gradient(135deg, #ffaa00 0%, #cc8800 100%);
    border-color: #ffaa00;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.2);
} 