* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #353535 0%, #000000 100%);
}

.login-box {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 320px;
    text-align: center;
}

.logo {
    display: block;
    max-width: 220px;
    max-height: 220px;
    margin-bottom: 1.5rem;
}

.login-box h2 {
    margin: 0 0 1.5rem;
    color: #111;
}

.login-box input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.login-box button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box button:hover {
    background: #333;
}

.login-box a {
    display: inline-block;
    margin-top: 1rem;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-box a:hover {
    text-decoration: underline;
}

.flash-messages {
    margin-top: 1rem;
    width: 320px;
    list-style: none;
    padding: 0;
}

.flash-messages li {
    color: #111;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.dashboard-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 700px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.4rem;
    color: #111;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.dashboard-header a {
    color: #000;
    text-decoration: none;
}

.dashboard-header a:hover {
    text-decoration: underline;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.video-table th, .video-table td {
    text-align: left;
    padding: 0.6rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: #222;
}

.video-table th {
    color: #000;
}

.upload-section {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.upload-section form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.upload-section input[type=file] {
    flex: 1;
    margin-right: 1rem;
}

.upload-section input[type=file]::file-selector-button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 1rem;
}

.upload-section input[type=file]::file-selector-button:hover {
    background: #333;
}

.upload-section button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-section button:hover {
    background: #333;
}
