/* style.css - Styling for 3D printer ordering website */

/* Import Google Fonts: Poppins for UI, Caveat & Itim for the organic/cursive feel in the order form */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Itim&family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b0f19;
    --bg-gradient: linear-gradient(135deg, #090d16 0%, #15102a 100%);
    --navbar-bg: rgba(0, 0, 0, 0.85);
    --navbar-text: #f8fafc;
    --primary-gradient: linear-gradient(135deg, #7b2cbf 0%, #4cc9f0 100%);
    --card-green: linear-gradient(135deg, #52c842 0%, #3ca02e 100%);
    --box-light-green: #ccff90;
    --text-dark-green: #143505;
    --dark-text: #f1f5f9;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 44, 191, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR STYLING */
header {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--navbar-text);
}

.logo-top {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #e0b0ff, #80e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #4cc9f0;
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Gradient Pill Buttons */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Itim', cursive;
    font-style: italic;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.6);
}

.user-welcome {
    color: #e2e8f0;
    font-size: 15px;
    margin-right: 10px;
}

/* MAIN CONTENT CONTAINER */
main {
    flex: 1;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* 3D ORDER FORM CONTAINER */
.order-container {
    background: var(--card-green);
    border-radius: 35px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.25), 0 0 30px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Layout Grid */
.order-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.order-grid-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.bottom-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bottom-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

/* Light Green Custom Form Controls */
.form-box {
    background-color: var(--box-light-green);
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.form-box:focus-within {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

.form-box label, .form-box-text {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--text-dark-green);
    margin-bottom: 5px;
    text-align: center;
}

.form-box input, .form-box select, .form-box textarea {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Itim', cursive;
    font-size: 18px;
    color: var(--text-dark-green);
    width: 100%;
    text-align: center;
}

.form-box textarea {
    resize: none;
    height: 60px;
}

.form-box select {
    text-align-last: center;
    cursor: pointer;
}

/* Fiyat ve Sipariş Ver */
.price-display {
    background-color: var(--box-light-green);
    border-radius: 25px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.price-display .price-title {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    color: var(--text-dark-green);
    margin-bottom: 2px;
}

.price-display .price-value {
    font-family: 'Itim', cursive;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark-green);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-order-submit {
    background-color: var(--box-light-green);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 15px;
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--text-dark-green);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-order-submit:hover {
    transform: scale(1.05);
    background-color: #bbf870;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* GENERAL PAGES (Login, Register, Orders, Admin) */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
}

.auth-group {
    margin-bottom: 20px;
}

.auth-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.auth-input:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
    outline: none;
}

.btn-auth-submit {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.5);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

.auth-footer a {
    color: #4cc9f0;
    text-decoration: none;
    font-weight: 600;
}

/* Notification alerts */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(21, 87, 36, 0.2);
    color: #8ce99a;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background-color: rgba(114, 28, 36, 0.2);
    color: #ffc9c9;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* TABLES STYLING (Orders & Admin) */
.table-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    font-weight: 600;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    vertical-align: middle;
    color: #e2e8f0;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* Status Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}

.badge-bekleniyor {
    background-color: rgba(253, 126, 20, 0.2);
    color: #ff922b;
}

.badge-basiliyor {
    background-color: rgba(21, 170, 191, 0.2);
    color: #3bc9db;
}

.badge-kargoya-verildi {
    background-color: rgba(0, 123, 255, 0.2);
    color: #74c0fc;
}

.badge-teslim-edildi {
    background-color: rgba(43, 138, 62, 0.2);
    color: #69db7c;
}

/* Admin Dashboard Layout */
.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-premium);
}

.admin-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

/* Inline forms in admin */
.inline-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.inline-form input {
    flex: 1;
}

.btn-action {
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

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

.btn-danger {
    background: rgba(255, 107, 107, 0.2);
    color: #ff8787;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.4);
}

.btn-success {
    background: rgba(81, 207, 98, 0.2);
    color: #8ce99a;
    border: 1px solid rgba(81, 207, 98, 0.3);
}

.btn-success:hover {
    background: rgba(81, 207, 98, 0.4);
}

/* Status dropdown in admin table */
.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
}

/* FOOTER */
footer {
    background-color: #05070c;
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* MODAL OVERLAY STYLING */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141724;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.modal-content p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-form-group {
    margin-bottom: 25px;
}

.modal-form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    outline: none;
    transition: var(--transition-smooth);
}

.modal-form-group input:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-left {
        flex-direction: column;
        gap: 10px;
    }
    .order-grid-top {
        grid-template-columns: 1fr;
    }
    .order-grid-bottom {
        grid-template-columns: 1fr;
    }
    h1.page-title {
        font-size: 36px;
        text-align: center;
    }
}
