@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --danger: #d93025;
    --success: #1e8e3e;
    --warning: #f9ab00;
    --bg-main: #ffffff;
    --surface: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border: #dadce0;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 4px 6px rgba(60, 64, 67, 0.3);
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 20px;
}

.logo i {
    font-size: 24px;
}

.logo strong {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:not(.btn):hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 24px;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 40px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(60, 64, 67, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    background: #f1fccb;
    /* Fallback */
    background: #e8f0fe;
    border-color: transparent;
}

.btn-sm {
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
    transition: border 0.2s;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 2px solid var(--primary);
    padding: 9px 11px;
    /* Compensate for border width */
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    /* Rounded for login box like newer Google sign-in */
    text-align: center;
}

.auth-container h2 {
    font-weight: 400;
    margin-bottom: 8px;
}

/* Cloud / File Grid */
.cloud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.file-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s, transform 0.2s;
}

.file-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.file-preview {
    height: 140px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.file-footer {
    padding: 12px;
}

.file-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-decoration: none;
}

/* Cloud Actions */
.file-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    background: #f8f9fa;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.action-icon:hover {
    background-color: rgba(60, 64, 67, 0.08);
    color: var(--text-primary);
}

.action-icon.delete:hover {
    color: var(--danger);
    background-color: #fce8e6;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-success {
    background: #e6f4ea;
    color: #137333;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
}

.alert-warning {
    background: #fef7e0;
    color: #b06000;
}

.alert-info {
    background: #e8f0fe;
    color: #1967d2;
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #e6f4ea;
    color: #137333;
}

.badge-danger {
    background: #fce8e6;
    color: #c5221f;
}

.badge-warning {
    background: #fef7e0;
    color: #b06000;
}

/* Footer */
footer {
    margin-top: 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}