/*-----------------------------------*\
 * #root Variables
\*-----------------------------------*/
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
    --success: #2ecc71;
    --warning: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/*-----------------------------------*\
 * #header Styles
\*-----------------------------------*/
header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.btn-danger {
    background-color: var(--accent);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.search-bar {
    display: flex;
    margin-bottom: 2rem;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
}

.search-bar input:focus {
    border-color: var(--secondary);
}

.search-bar button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
}

/*-----------------------------------*\
 * #Books
\*-----------------------------------*/

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.book-thumbnail {
    height: 200px;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.book-info .author {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.book-info .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark);
}

.download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #2980b9;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

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

.users-table th {
    background-color: #f8f9fa;
    color: var(--primary);
    font-weight: 600;
}

.users-table tr:hover {
    background-color: #f8f9fa;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.action-btn.edit {
    background-color: var(--secondary);
    color: white;
}

.action-btn.delete {
    background-color: var(--accent);
    color: white;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.5em;
    color: var(--secondary);
    margin-right: 8px;
}

.profile-cards-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 340px;
    width: 100%;
    transition: box-shadow 0.3s;
}

.profile-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.profile-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary);
    background: var(--light);
}

.profile-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-card p {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05em;
    padding: 6px 14px;
    border-radius: 4px;
    background: #f4f8fb;
    transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
    background: var(--secondary);
    color: #fff;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--secondary);
    width: 100%;
    margin-top: 50px;
    padding: 2.5rem 1.5rem;
    color: var(--footer-content);
}

footer a {
    color: var(--footer-content);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1150px;
}

.footer-container .about h2 {
    font-size: 3em;
    font-weight: 600;
    background: linear-gradient(to top, transparent 0%, var(--footer-content) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

.footer-container .about p {
    font-size: var(--normal-font-size);
    font-weight: 300;
    margin-bottom: 30px;
}

.footer-container .info,
.footer-container .follow {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.footer-container .info h3,
.footer-container .follow h3 {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 30px;
}

.footer-container .info ul,
.footer-container .follow ul {
    display: flex;
}

.footer-container .follow ul a:hover {
    color: var(--second-color);
    transition: 0.5s ease;
}

.footer-container .info a {
    margin: 20px;
}

.footer-container .info a:hover {
    color: var(--second-color);
    transition: 0.5s ease;
}

.footer-container .follow a {
    font-size: 1.5em;
    margin: 20px;
}

.footer-copyright p {
    font-size: var(--normal-font-size);
    font-weight: 300;
    margin-top: 50px;
}
