/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
section{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:100vh;
    background: url('images/photos.jpg') no-repeat center center/cover;
    background size:cover;
    background position:center;
}
body {
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow-x: hidden;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: url('images/bg.jpg') no-repeat center center/cover;
}

.login-box {
    position: relative;
    width: 400px;
    height: 450px;
    background: transparent;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}
.login-box h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

.input-box {
    position: relative;
    width: 310px;
    margin: 30px 0;
    border-bottom: 2px solid #fff;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    line-height: 57px;
}

.remember-forgot {
    margin: -15px 0 15px;
    font-size: .9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input {
    margin-right: 3px;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: black;
    font-weight: 500;
}

.register-link {
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

.register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-section {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* User Profile */
.user-profile {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* Navigation */
.menu ul {
    list-style: none;
    padding: 20px 0;
}

.menu li {
    margin-bottom: 5px;
}

.menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    transition: all 0.3s;
    opacity: 0.8;
}

.menu a:hover, 
.menu li.active a {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid white;
}

.menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Recent Files Table */
.file-table {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.file-table table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th, 
.file-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

.file-table th {
    background-color: #f8fafc;
    color: #667eea;
    font-weight: 600;
}

.file-table tr:hover {
    background-color: #f8fafc;
}

/* Logout Button */
.logout-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width:auto;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    z-index: 100;
}

.logout-button:hover {
    background-color: #c0392b;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* ===== CONSISTENT STYLES ===== */
.search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.search-box input {
    padding: 10px 15px;
    border: 1px solid #e0e6ed;
    border-radius: 4px 0 0 4px;
    width: 250px;
    outline: none;
}

.actions button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-download { background: #4CAF50; color: white; }
.btn-share { background: #2196F3; color: white; }
.btn-delete { background: #f44336; color: white; }

.file-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}




