/* PDF Share App - Global Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e5e7eb;
    --background: #f5f7fa;
    --white: white;
    --success: #d4edda;
    --error: #f8d7da;
    --error-text: #721c24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
button, .btn {
    font-family: inherit;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

button:focus, .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
textarea,
select {
    font-family: inherit;
    font-size: 14px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f9f9f9;
    border-bottom: 2px solid var(--border-color);
}

th {
    padding: 15px;
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: #f9f9f9;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 18px; }
    
    .container {
        padding: 0 15px;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 20px; }
    h2 { font-size: 16px; }
    
    .container {
        padding: 0 10px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .no-print {
        display: none !important;
    }
}
